#include "IPhone.h"
#include <iostream>

namespace Adapter{
    void IPhone::recharge() {
        std::cout << "IPhone充电20%..." << std::endl;
        std::cout << "IPhone充电40%..." << std::endl;
        std::cout << "IPhone充电60%..." << std::endl;
        std::cout << "IPhone充电80%..." << std::endl;
        std::cout << "IPhone充电100%..." << std::endl;
        std::cout << "IPhone充电完成！" << std::endl;
    }

    void IPhone::useLightening() {
        std::cout << "用Lightening接口充电... " << std::endl;
    }
}
